package ferus.tigris.livewallpapers.mechanism;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.service.wallpaper.WallpaperService;

public class ImagesPool {
	static ImagesPool imagesPoolInstance = null;
	private Bitmap background;
	private Bitmap bolt;
	
	public ImagesPool(WallpaperService view) {
		background = BitmapFactory.decodeResource(view.getResources(), R.drawable.background);
		bolt = BitmapFactory.decodeResource(view.getResources(), R.drawable.bolt);
	}

	public static ImagesPool instance(WallpaperService w) {
		if(imagesPoolInstance == null) {
			imagesPoolInstance = new ImagesPool(w);
		}
		return imagesPoolInstance;
	}

	public Bitmap getBackground() {
		return background;
	}

	public Bitmap getBolt() {
		return bolt;
	}

}
